package ui;

import java.util.Scanner;

public class StartMenu {
    public static void showStartMenu() {
        System.out.println("--------欢迎使用--------");
        System.out.println("1、登录");
        System.out.println("2、注册");
        System.out.println("3、退出");
        System.out.println("请输入你的选择！");
        Scanner scanner = new Scanner(System.in);
        switch (scanner.nextInt()) {
            case 1:
                LoginMenu.showLoginMenu();
                break;
            case 2:
                RegisterMenu.showRegisterMenu();
                break;
            case 3:
                System.exit(0);
                break;
            default:
                showStartMenu();
        }
    }
}
